import { IPublicModelPluginContext } from '@alilc/lowcode-types';
import { saveWorkspaceSchema } from '../../services/mockService';

const EditorInitPlugin = (ctx: IPublicModelPluginContext) => {
  return {
    async init() {
      saveWorkspaceSchema(ctx);
    },
  };
}
EditorInitPlugin.pluginName = 'EditorInitPlugin';
EditorInitPlugin.meta = {};
export default EditorInitPlugin;